package zut.edu.cs.network.io.buffer;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class BufferReaderDemo {

	public static void main(String[] args) {
		BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
		try {
//			输入多行内容，显示到控制台
//			当输入为空时，不再进行输入
			System.out.println("请输入内容：");
			String str = bReader.readLine();
			while (!str.equals("")) {
				System.out.println(str);
				System.out.println("请输入内容：");
				str = bReader.readLine();
			}
			System.out.println("输入结束！");
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
